<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:'cq',
            age:10
        }

        function isEmpty(obj)
        {
             let keys = Object.keys(obj);
             if(keys.length === 0) return true;
             return false;
        }

        console.log(isEmpty({}));
    </script>
</body>
</html>